import request from '@/utils/request'

// 查询验机选项标题列表
export function listTestTitle(query) {
  return request({
    url: '/basic/testTitle/list',
    method: 'get',
    params: query
  })
}

// 查询验机选项标题详细
export function getTestTitle(titleId) {
  return request({
    url: '/basic/testTitle/' + titleId,
    method: 'get'
  })
}

// 新增验机选项标题
export function addTestTitle(data) {
  return request({
    url: '/basic/testTitle',
    method: 'post',
    data: data
  })
}

// 修改验机选项标题
export function updateTestTitle(data) {
  return request({
    url: '/basic/testTitle',
    method: 'put',
    data: data
  })
}

// 删除验机选项标题
export function delTestTitle(titleId) {
  return request({
    url: '/basic/testTitle/' + titleId,
    method: 'delete'
  })
}

// 导出验机选项标题
export function exportTestTitle(query) {
  return request({
    url: '/basic/testTitle/export',
    method: 'get',
    params: query
  })
}